package com.css.apps.base.user.action;

import com.css.core.configuration.Environment;
import com.css.util.Ajax;
import com.css.util.Messages;
import com.css.util.StringHelper;
import com.css.webbase.webwork.action.AdminAction;
import com.opensymphony.xwork.Action;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

@SuppressWarnings("serial")
public class GetUser extends AdminAction {
	private static Log log = LogFactory.getLog(GetUser.class);
    private String uuid;    //userId
	private String orgIds;  //树节点机构id
    private String viewMod; //浏览模式

	@SuppressWarnings("unchecked")
	public String adminGo() {
		try {
            if (StringHelper.isEmpty(orgIds)) {
                result = Ajax.JSONResult(Environment.RESULT_CODE_SUCCESS,  Messages.getString("systemMsg.fieldEmpty"));
                return Action.ERROR;
            }
			return Action.SUCCESS;
		} catch (Exception ex) {
			log.error(ex.getMessage(), ex);
			setMessage(Messages.getString("systemMsg.exception"));
			return Action.ERROR;
		}
	}

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getOrgIds() {
        return orgIds;
    }

    public void setOrgIds(String orgIds) {
        this.orgIds = orgIds;
    }

    public String getViewMod() {
        return viewMod;
    }

    public void setViewMod(String viewMod) {
        this.viewMod = viewMod;
    }
}
